home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl1 / demos / Makefile < prev    next >
Encoding:
Makefile  |  1996-11-11  |  1.9 KB  |  72 lines

  1. #!smake
  2. #
  3. # Copyright 1993, Silicon Graphics, Inc.
  4. #  All Rights Reserved.
  5. #
  6. # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  7. # the contents of this file may not be disclosed to third parties, copied or
  8. # duplicated in any form, in whole or in part, without the prior written
  9. # permission of Silicon Graphics, Inc.
  10. #
  11. # RESTRICTED RIGHTS LEGEND:
  12. # Use, duplication or disclosure by the Government is subject to restrictions
  13. # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  14. # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  15. # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  16. # rights reserved under the Copyright Laws of the United States.
  17. #
  18. #
  19. # Makefile for opengl 1 class demos 
  20. #
  21. #    "$Revision: 1.2 $"
  22.  
  23. include    $(ROOT)/usr/include/make/commondefs
  24.  
  25. SUBDIRS=
  26.  
  27. .PRECIOUS: $(SUBDIRS)
  28.  
  29. COMMONPREF=ogl1
  30.  
  31. CFILES  = enterprise.c polarViewDemo.c glxdino.c glxmotif.c modeler.c \
  32.       shadow.c shear.c
  33. TARGETS    = enterprise polarViewDemo glxdino glxmotif modeler \
  34.       shadow shear
  35.  
  36. OPENGL1 ?= ..
  37.  
  38. LLDOPTS = -L${OPENGL1}/lib
  39. LLDLIBS = -loglprog -lglut -lGLU -lGL -lXm -lXmu -lXt -lX11  -lm
  40.  
  41. LCINCS = -I. -I${OPENGL1}/include
  42. LCOPTS = -Xcpluscomm
  43.  
  44. # don't bother making intermediate files since only one source file
  45. LMKDEPFLAGS= $(NULLSUFFIX_MKDEPFLAG)
  46.  
  47. default:     $(TARGETS) subdirs
  48.  
  49. shadow:    $$@.o
  50.     $(CCF) -o $@ $@.o $(LLDOPTS) -lGLw -lGLU -lGL -lXm -lXt -lX11  -lm
  51.     
  52. subdirs:
  53. #    @for d in $(SUBDIRS); do \
  54. #                if [ -d $$d ] ; then \
  55. #                        echo "====\tcd $$d; $(MAKE) $@"; \
  56. #                        ( cd $$d; $(MAKE) $@; ) ; \
  57. #                fi ; \
  58. #    done
  59.  
  60. include $(COMMONRULES)
  61.  
  62. $(SUBDIRS): $(_FORCE)
  63.     cd $@; $(MAKE)
  64.  
  65. install $(COMMONTARGS):     $(COMMONPREF)$$@
  66. #    @for d in $(SUBDIRS); do \
  67. #                if [ -d $$d ] ; then \
  68. #                        echo "====\tcd $$d; $(MAKE) $@"; \
  69. #                        ( cd $$d; $(MAKE) $@; ) ; \
  70. #                fi ; \
  71. #    done
  72.